from flask import Flask
from models.models import db

app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://root:123456@localhost:3306/e-web"
db.init_app(app)

if __name__ == '__main__':
    with app.app_context():
        db.create_all()
    print("Database tables created.")
